cmake_minimum_required(VERSION 3.16.0)
project(
    Demo
    VERSION 0.0.1
    DESCRIPTION "a demo of cmake"
    HOMEPAGE_URL "https://gitee.com/scarypie/example-cmake-demo"
    LANGUAGES CXX
)

# Language C++ 17
set(CMAKE_CXX_STANDARD 17)
# Enable testing
# enable_testing()

# Environement settings
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(ENGINE_DIR ${CMAKE_SOURCE_DIR}/src/core)
set(PROCESS_DIR ${CMAKE_SOURCE_DIR}/src/process)
set(SDL_DIR C:/SDL3/x86_64-w64-mingw32)     # SDL3
set(GLM_DIR ${PROJECT_SOURCE_DIR}/lib/glm)  # glm

# Add submodules
add_subdirectory(src)
# add_subdirectory(test/map_test)
